home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacPeople 2001 June 15
/
MACPEOPLE-2001-06-15.ISO.7z
/
MACPEOPLE-2001-06-15.ISO
/
連載データ
/
OS X情報局
/
x-assist-03j.sit
/
X-Assist Japanese.dmg
/
X-Assist プラグイン SDK
/
SetVolume Example
/
XAPlugin.h
< prev
next >
Wrap
Text File
|
2001-04-17
|
1KB
|
56 lines
//
// XAPlugin.h
// XAPlugin
//
// Created by rosst on Fri Apr 13 2001.
// Copyright (c) 2001 __CompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
// ============================
// == Change "SetVolume" below to your plugin name.
// == Once you build the plugin, place it into the "X-Assist Plugins" folder
// == and everything should just load.
// == NOTE: you MUST use a unique name, otherwise the conflicting plugins
// == will NOT load.
// ============================
@interface SetVolume : NSObject {
NSMenuItem* mPluginMenuItem;
// Your variables go here...
long mCurVolume;
}
- (id)init;
- (void)shutdownPlugin;
// =============================
// == Required Plugin Routine ==
// =============================
// == API VERSION 1 ROUTINES ==
// This routine is called to obtain a menu item to be inserted into the menu.
- (NSMenuItem*)getMenuItem;
// items below are for future use.
- (int)getPluginAPIVersion;
- (int)getMenuItemInsertLocation;
- (NSString*)getPluginDescription; // return info & copyright etc.
- (void)doConfigurePlugin; // put up config window...
// == API VERSION 2 ROUTINES ==
// =============================
// User defined routines.
- (IBAction)DoSetVolumeTo:(id)sender;
@end